# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=lemoa
pkgver=0.5.0
pkgrel=0
pkgdesc="Native GTK clienet for Lemmy"
url="https://github.com/lemmygtk/lemoa"
# ring
arch="all !s390x !ppc64le !riscv64"
license="GPL-3.0-or-later"
makedepends="
	cargo
	desktop-file-utils
	gtk4.0-dev
	libadwaita-dev
	meson
	openssl-dev
	"
source="https://github.com/lemmygtk/lemoa/archive/v$pkgver/lemoa-$pkgver.tar.gz
	cargo-env.patch
	"
options="net !check" # no tests

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
bd63715343ed54f16a1c1d16510c69aca8e4fefbe55a6123c80510373600fbdb031e97fd6cd53cd9a131ef216220fec8bed6c7d3a64b110f5f94a4ba44ea1c80  lemoa-0.5.0.tar.gz
6055e4e7e6b9efe8b2e233342b9a0665dd17a15f3598fd5a702af690813523a78ee23a48cf0a76924ef1a734a14bfffff12d7b8a00d97ac7341bffae696c04d3  cargo-env.patch
"
